package com.dhcc.core.modules.system.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.dhcc.core.framework.base.entity.BaseEntity;

import io.swagger.annotations.ApiModelProperty;

/**
 * 登录记录
 * 
 * @ClassName: LoginLog
 * @Description: TODO
 * @author: cyf
 * @date: 2018年1月2日 上午10:36:05
 */
@TableName("sys_login_log")
public class LoginLog extends BaseEntity<LoginLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 日志名称
     */
    private String logName;
    /**
     * 操作人id
     */
    private Long userId;
    
    /** 用户名 */
    private String userName;
    
    /** 登录名称 */
    private String loginName;

    /** 部门名称 */
    private String deptName;
    
    /** 职务名称 */
    private String positionName;

    /** 登录IP地址 */
    private String ipaddr;

    /** 浏览器类型 */
    private String browser;

    /** 操作系统 */
    private String os;
    /**
     * 是否执行成功
     */
    private String succeed;
    /**
     * 具体消息
     */
    private String message;
    
    // 创建日期
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    @ApiModelProperty(hidden=true)
    protected Date createDate;

    public String getLogName() {
        return logName;
    }

    public void setLogName(String logName) {
        this.logName = logName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSucceed() {
        return succeed;
    }

    public void setSucceed(String succeed) {
        this.succeed = succeed;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
